package org.jeecg.modules.demo.test.controller;

import lombok.RequiredArgsConstructor;
import org.jeecg.modules.demo.test.entity.Business;
import org.jeecg.modules.demo.test.service.BusinessService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/business")
@RequiredArgsConstructor
public class BusinessController {

    private final BusinessService BusinessService;


    @GetMapping("list")
    public List<Business> list(){
        return BusinessService.list();
    }
}
